package com.isky.visual.user.service;

import com.isky.visual.result.ResultVo;
import com.isky.visual.user.entity.User;
import com.isky.visual.user.vo.LoginVo;
import com.isky.visual.user.vo.UnifiedVisualResult;
import com.isky.visual.user.vo.UserInfoTreeVO;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @ClassName : IuserService
 * @Description : 用户模块的接口
 * @Author :wudl
 * @Date: 2020-04-12 11:29
 */
@Service
public interface IuserService {
    ResultVo<List<User>> getUser();

    /**
     * 用户登录
     * @param response
     * @param loginVo
     * @return
     */
    ResultVo<String> login(LoginVo loginVo);

    boolean checkLogin(User user , String password);

    List<UserInfoTreeVO> groupTreeInfo();

    boolean deleteGroup(Long groupId);

    /**
     * TODO 查询用户信息
     * @param userId
     * @return
     */
    User query(Long userId);

    /**
     * TODO 查询用户信息
     * @param userName
     * @return
     */
    User query(String userName);

    /**
     * TODO
     * @param unifiedVisual
     * @return
     */
    User supplement(UnifiedVisualResult unifiedVisual);
}
